package freespiritsocial.io.user.ui.adapter

import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import freespiritsocial.io.user.data.model.bean.PostPojo
import freespiritsocial.io.user.ui.fragment.post.ExplorePostDetailItemFrg

class ExplorePostAdapter(fragment: Fragment,val frags: ArrayList<PostPojo>): FragmentStateAdapter(fragment) {

    override fun getItemCount(): Int = frags.size

    override fun createFragment(position: Int): Fragment = ExplorePostDetailItemFrg.create(frags[position],position)
}